package diona;

/**
 * User: anton
 * Date: 20.03.11 12:22
 */
public abstract class HotKeyListener implements com.melloware.jintellitype.HotkeyListener
{
    public abstract HotKeyEventType getEventType();

    public void onHotKey(int identifier)
    {
        if (identifier == getEventType().code)
        {
            onHotKey();
        }
    }

    protected abstract void onHotKey();
}
